home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / binutils.7 / binutils / binutils-2.7 / ld / scripttempl / armcoff.sc < prev    next >
Encoding:
Text File  |  1996-07-04  |  803 b   |  40 lines

  1. # Linker script for ARM COFF.
  2. # Based on i386coff.sc by Ian Taylor <ian@cygnus.com>.
  3. test -z "$ENTRY" && ENTRY=_start
  4. cat <<EOF
  5. OUTPUT_FORMAT("${OUTPUT_FORMAT}")
  6. ${LIB_SEARCH_DIRS}
  7.  
  8. ENTRY(${ENTRY})
  9.  
  10. SECTIONS
  11. {
  12.   /* We start at 0x8000 because gdb assumes it (see FRAME_CHAIN).
  13.      The bottom part of memory is reserved anyway (but 32k?).  */
  14.   .text ${RELOCATING+ 0x8000} : {
  15.     *(.init)
  16.     *(.text)
  17.     *(.fini)
  18.     ${RELOCATING+ etext  =  .};
  19.   }
  20.   .data ${RELOCATING+ 0x40000 + (. & 0xffc00fff)} : {
  21.     *(.data)
  22.     ${RELOCATING+ edata  =  .};
  23.   }
  24.   .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
  25.   {                     
  26.     *(.bss)
  27.     *(COMMON)
  28.     ${RELOCATING+ end = .};
  29.   }
  30.   .stab  0 ${RELOCATING+(NOLOAD)} : 
  31.   {
  32.     [ .stab ]
  33.   }
  34.   .stabstr  0 ${RELOCATING+(NOLOAD)} :
  35.   {
  36.     [ .stabstr ]
  37.   }
  38. }
  39. EOF
  40.